﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace whatpricemyhouse.Controller
{
    public partial class PlaceSelector : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public int getSelectedValue()
        {
            int value = 42;
            String selectValue = this.PlaceDropList.SelectedValue.ToString();
            try
            {
                value = int.Parse(selectValue);
            }
            catch (Exception ex) { 
                
            }
            return value;
        }

        public void setSelectedValue(String value) {
            this.PlaceDropList.SelectedValue = value;
        }
    }
}